<?php
	
class Table_Composer extends Zend_Db_Table_Abstract
{
    protected $_name    = 'composer';
    protected $_primary = 'ALBUM_NUMERO,VIP_NUMERO';
    protected $_sequence = FALSE;
 	
	public function insertComposer($numAlbum, $numVip){
		$data = array('ALBUME_NUMERO' => $numAlbum, 'VIP_NUMERO'=> $numVip);
		$this->insert($data);
	}
	
	public function getIdAlbum ($idVip){
		return $this->fetchRow($this
			->select()
			->where('VIP_NUMERO= ?', $idVip));
	}
	public function supprComposer($id){
		$this->delete('VIP_NUMERO ='.(int)$id);
	}
	
}